/*
* Copyright (c) 2025 Huawei Device Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including but not limited to the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to provide persons with access to the Software
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGE OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

.adaptive-layout {
  height: 100%;

  .tab-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    img {
      width: 22px;
      margin-bottom: 4px;
    }
  }

  .list-container {
    height: 100%;
    overflow: hidden;
    background: #fff;

    .container {
      height: 100%;

      .title-wrap {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;

        .go-back {
          display: flex;
          align-items: center;
          margin-right: 8px;
        }

        .title-link {

          .title {
            color: rgba(0, 0, 0, 0.9);
            font-size: 20px;
            font-weight: 700;
            line-height: 35px;
            text-align: left;
          }
        }

        .title-info {
          display: flex;
          align-items: center;
        }
      }

      .message-list {
        height: calc(100% - 56px);
        margin-top: 8px;
        padding: 0 8px;
        overflow: auto;

        li {
          list-style: none;
          height: 72px;
          border-radius: 16px;

          .item {
            display: flex;
            padding: 14px;

            .item-img-wrap {
              position: relative;

              .item-img {
                width: 40px;
                height: 40px;
                margin-right: 16px;
              }

              .unread-bubble-wrap {
                position: absolute;
                height: 16px;
                min-width: 16px;
                border-radius: 8px;
                background: rgb(232, 72, 38);
                top: -6px;
                left: 28px;

                .unread-bubble {
                  color: rgb(255, 255, 255);
                  font-size: 10px;
                  font-weight: 400;
                  letter-spacing: 0px;
                  display: block;
                  line-height: 16px;
                  text-align: center;
                  padding: 0 3px;
                }
              }
            }

            .item-content {
              flex: 1;

              .content-main {
                font-size: 16px;
                font-weight: 500;
                line-height: 21px;
                color: rgba(0, 0, 0, 0.9);
              }

              .content-secondary {
                font-size: 14px;
                font-weight: 400;
                line-height: 19px;
                color: rgba(0, 0, 0, 0.6);
              }
            }

            .item-time {
              color: rgb(24, 36, 49);
              font-size: 12px;
              font-weight: 400;
              letter-spacing: 0px;
              text-align: left;
            }
          }
        }

        .item-active {
          background: rgba(10, 89, 247, 0.1);
        }
      }
    }
  }

  .toolbar_info {
    color: rgb(10, 89, 247);
  }
}